package com.es.www.simpleFactory;

/**
 * @Created by michangtao
 * @Date 2022/5/10 17:52
 * @Description
 */
public abstract class Pizza {

    protected String name;

    protected abstract void prePare();

    protected void bake(){
        System.out.println(name + " baking");
    }

    protected void cut(){
        System.out.println(name + " cutting");
    }

    protected void box(){
        System.out.println(name + " boxing");
    }

    public void setName(String name) {
        this.name = name;
    }
}
